/**
 * if test3
 * date : 2014.10
 * writer : me
 */

function ifTest3() {
	var btnclk = document.getElementById("btn");
	var frm;
	btnclk.onclick = function(){
		frm = document.frm;
		var num1 = Number(frm.num1.value);
		if(num1%2 == 0){
			alert("짝수");
		}
		else{
			alert("홀수");
		}
	}
}